package com.yinp.proapp.module.qq;

import android.util.Log;

import com.tencent.tauth.IUiListener;
import com.tencent.tauth.UiError;

import org.json.JSONObject;

public class BaseUiListener implements IUiListener {

    protected void doComplete(Object values) {
    }

    @Override
    public void onComplete(Object o) {
        //        mBaseMessageText.setText("onComplete:");
//        mMessageText.setText(response.toString());
        doComplete(o);
    }

    @Override
    public void onError(UiError e) {
        Log.d("yinp_", "UiError: ");
//        showResult("onError:", "code:" + e.errorCode + ", msg:"
//                + e.errorMessage + ", detail:" + e.errorDetail);
    }

    @Override
    public void onCancel() {
        Log.d("yinp_", "onCancel: ");
//        showResult("onCancel", "");
    }

    @Override
    public void onWarning(int i) {
        Log.d("yinp_", "onWarning: ");
    }
}